import 'package:flutter/material.dart';
import 'package:flutter_app/components/radiusContainer.dart';

class OtcModule extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return RadiusContainer(
      radius: 5.0,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          Expanded(
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text(
                  '买币',
                  style: TextStyle(fontSize: 16, fontWeight: FontWeight.w500),
                ),
                Text(
                  '支持购买USDT,BTC,ETH...',
                  style: TextStyle(color: Colors.grey, fontSize: 13),
                ),
              ],
            ),
          ),
          Container(
            width: 100,
            height: 40,
            child: Stack(
              alignment: Alignment.centerRight,
              children: [
                Positioned(
                  right: 0,
                  top: 0,
                  child: Image.asset(
                    "assets/images/ic_pay_mastercard.png",
                    width: 35,
                    height: 35,
                  ),
                ),
                Positioned(
                  right: 29,
                  top: 0,
                  child: Image.asset(
                    "assets/images/ic_pay_visa.png",
                    width: 35,
                    height: 35,
                  ),
                ),
              ],
            ),
          )
        ],
      ),
    );
  }
}
